home *** CD-ROM | disk | FTP | other *** search
/ How Computers Work (Alt) / HowComputersWork.iso / Walkthrough / Mill / HCW.DXR / 00612_SS - credits.ls < prev    next >
Encoding:
Text File  |  1999-07-26  |  568 b   |  24 lines

  1. property pSprite, pLocV, pSound
  2.  
  3. on beginSprite
  4.   set the volume of sound 1 to 0
  5.   set pSprite to the currentSpriteNum
  6.   set pLocV to the locV of sprite pSprite
  7.   set pSound to the number of member "S - Credits"
  8.   puppetSound(1, pSound)
  9. end
  10.  
  11. on exitFrame
  12.   if the volume of sound 1 < 255 then
  13.     set the volume of sound 1 to the volume of sound 1 + 5
  14.   end if
  15.   set the locV of sprite pSprite to the locV of sprite pSprite - 2
  16.   if the bottom of sprite pSprite < 0 then
  17.     set the locV of sprite pSprite to pLocV
  18.   end if
  19. end
  20.  
  21. on endSprite
  22.   sound fadeOut 1, 30
  23. end
  24.